package cn.zz.veggie.web.types.dto.mgmt.user;

import org.hibernate.validator.constraints.Length;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import lombok.Getter;
import lombok.Setter;

/**
 * @author zhongq
 * @since 2024/6/16
 */
@Getter
@Setter
public class MgmtUserSaveDto {
	@Positive
	private Integer id;
	@NotNull
	@NotBlank
	private String username;
	@NotBlank
	@Length(min = 11, max = 11)
	private String mobile;
	@NotBlank
	private String storeName;
	@NotBlank
	private String storeAddress;
}